<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>上传考试题目 - 在线考试系统</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container">
        <h1>上传考试题目</h1>

        <form action="{{ url_for('upload_file') }}" method="POST" enctype="multipart/form-data">
            <div class="mb-3">
                <label for="question_type" class="form-label">题目类型:</label>
                <select id="question_type" name="question_type" class="form-select" required>
                    <option value="questionsxuanze">选择题</option>
                    <option value="question2">判断题</option>
                    <option value="questions">主观题</option>
                </select>
            </div>
            <div class="mb-3">
                <label for="file" class="form-label">选择文件 (仅限 .docx):</label>
                <input type="file" id="file" name="file" class="form-control" required>
            </div>
            <button type="submit" class="btn btn-primary w-100">上传题目</button>
        </form>
    </div>
</body>
</html>
